const mongoose = require("./db");

// 创建集合对象
const proSchema = new mongoose.Schema({
    proId:{type:String},
    proname:{type:String},
    kind:{type:String},
    img:{type:String},
    beforePri:{type:Number},
    desc:{type:String},
    stock:{type:Number},
    sales:{type:Number},
    lastPri:{type:Number},
    event:{type:String}
})

module.exports = mongoose.model("pros", proSchema);
